<?php


class Button extends HTMLElement {
	
	protected $type;
	/**
	 * 
	 */
	public function __construct($name, $value = 'Verzenden', $type = 'submit', $id = null) {
		$this->type = $type;
		$this->setName($name);
		$this->setValue($value);
		$this->setId($id);
	}
	
	public function setType($type)
	{
		$this->type = $type;
	}
	
	public function getType()
	{
		return $this->type;
	}
	
	/**
	 * 
	 * @see HTMLElement::getHTML()
	 */
	public function getHTML() {
		$html = '<input ';
		$html = $this->addAttributes($html, array('type'));
		$html .= ' />';
		return $html;
	}
}

?>